package com.jxtc.enterprise.hr.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "根据公司 ID 为员工批量充值的所需信息")
@Getter
@Setter
@ToString
public class BatchRechargeDTO {
    @Schema(description = "公司 ID", example = "c752804d0cd410267f404dd3f0457a57")
    @NotBlank(message = "公司 ID 不能为空")
    private String companyId;

    @Schema(description = "充值金额，单位：元", example = "100")
    @Min(value = 0, message = "充值金额不能小于 0")
    @NotNull(message = "充值金额不能为空")
    private BigDecimal amount;
}
